package com.zygk.locationtool.util;

import com.yanzhenjie.nohttp.rest.Response;

/**
 * Created by Wikison on 2017/12/5.
 * 网络请求
 */
public abstract class HttpRequest {

  public interface HttpListener<T> {
    void onStart(int what);

    void onSucceed(int what, Response<T> response);

    void onFailed(int what, Response<T> response);

    void onFinish(int what);
  }

  public interface HttpCallback {
    void onStart();

    void onSucceed(Object obj);

    void onFailed();

    void onFinish();
  }
}